import { _decorator, Button, Component, Node } from 'cc';
import { Logger } from '../utils/log';
const { ccclass, property } = _decorator;

@ccclass('MenuComponent')
export class MenuComponent extends Component {

    @property({
        tooltip: '返回按钮',
        displayName: '返回按钮',
        type: Button,
    })
    backButton: Button;

    @property({
        tooltip:'设置按钮',
        displayName:'设置按钮',
        type: Button,
    })
    settingButton: Button;

    @property({
        tooltip: '历史按钮',
        displayName: '历史按钮',
        type: Button,
    })
    historyButton: Button;

    @property({
        tooltip: '暂停按钮',
        displayName: '暂停按钮',
        type: Button,
    })
    PauseButton: Button;

    @property({
        tooltip: '速度按钮',
        displayName: '速度按钮',
        type: Button,
    })
    SpeedButton: Button;


    #log = new Logger('#MenuComponent#');

    start() {

    }

    handleBack() {
        this.#log.debug('handleBack')
    }

    handleSetting() {
        this.#log.debug('handleSetting')
    }

    handleHistory() {
        this.#log.debug('handleHistory')
    }

    handlePuase() {
        this.#log.debug('handlePuase')
    }

    handleSpeed() {
        this.#log.debug('handleSpeed')
    }

}


